package com.lkeqi.tags.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class UserCenterUtils {

    private final static String pattern = "[^a-zA-Z0-9]";

    /**
     * 校验账号是否存在特殊字符
     * @param userNo 用户号
     * @return
     */
    public static boolean containsSpecialCharacters(String userNo) {
        Pattern p = Pattern.compile(pattern);
        Matcher m = p.matcher(userNo);
        return m.find();
    }
}
